{include file="public/_meta" /}
<title>编辑推荐位</title>
<link href="__STATIC__/admin/lib/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="cl pd-5 bg-1 bk-gray mt-20"> 编辑推荐位信息</div>
<article class="page-container">
	<form class="form form-horizontal" id="form-article-add" method="post" action="{:url('featured/save')}">
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>标题：</label>
			<div class="formControls col-xs-8 col-sm-3">
				<input type="text" class="input-text" value="{$result.title}" placeholder="" id="title" name="title">
			</div>
		</div>

		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">推荐图：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input id="file_upload"  type="file" multiple="true" >
				<img id="upload_org_code_img" src="{$result.image}" width="150" height="150">
				<input id="file_upload_image" name="image" type="hidden" multiple="true" value="{$result.image}">
			</div>
		</div>

		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>所属分类：</label>
			<div class="formControls col-xs-8 col-sm-3"> <span class="select-box">
				<select name="type" class="select">

                  {volist name="types" id="vo"}
                  <option value="{$key}" {if condition="$key eq $result.type"} selected {/if}>{$vo}</option>
                  {/volist}
                </select>
				</span>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">url：</label>
			<div class="formControls col-xs-8 col-sm-3">
				<input type="text" class="input-text" value="{$result.url}" placeholder="" id="" name="url">
			</div>
		</div>

		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">描述：</label>
			<div class="formControls col-xs-8 col-sm-3">
				<input type="text" class="input-text" value="{$result.description}" placeholder="" id="" name="description">
			</div>
		</div>

		<div class="row cl">
			<input type="hidden" name="id" value="{$result.id}">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
				<button class="btn btn-primary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i> 保存</button>
			</div>
		</div>
	</form>
</article>


<!--_footer 作为公共模版分离出去-->
{include file="public/_footer" /}
<!--/_footer /作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script>
	var SCOPE = {
	    'uploadify_swf' : '__STATIC__/admin/uploadify/uploadify.swf', //插件uploadify加载swf文件路径
		'image_upload_path' : "{:url('api/image/upload')}", //插件uploadify上传控制器
	};
</script>

</body>
</html>